package com.superm.mappers;

import com.superm.entity.PurchaseDetails;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 采购申请单详情
 */
public interface PurchaseDetailsMapper {


    /**
     * 添加信息
     * @param purchaseDetails
     * @return
     */
    int  addMationInfo(@Param("purchaseDetails") PurchaseDetails purchaseDetails);


    /**
     * 根据订单号查询订单信息
     * @param purCode
     * @return
     */
    List<PurchaseDetails> selectCodeMation(@Param("purCode") String purCode,@Param("pageNo") Integer pageNo,@Param("pageSize") Integer pageSize);


    /**
     * 查询订单下的详情信息
     * @param purCode
     * @return
     */
    List<PurchaseDetails> selectCodeMationOne(@Param("purCode") String purCode);

    /**
     * 查询条数
     * @param purCode
     * @return
     */
    int count(@Param("purCode") String purCode);
}
